package com.firebird.app.fekpsl.mvp.home

import com.firebird.app.fekpsl.base.BaseModel
import com.firebird.app.fekpsl.http.RetrofitHelper
import com.firebird.app.fekpsl.bean.HttpResult
import com.firebird.app.fekpsl.bean.UserInfoBody
import io.reactivex.Observable

/**
 * @author firebird
 * @date 2018/8/30
 * @desc
 */
class MainModel : BaseModel(), MainContract.Model {

    override fun logout(): Observable<HttpResult<Any>> {
        return RetrofitHelper.userService.logout()
    }

    override fun getUserInfo(userUuid:String): Observable<HttpResult<UserInfoBody>> {
        return RetrofitHelper.userService.getUserInfo(userUuid)
    }

}